Wave Velocity
A better and more clear type name for wave velocity.
This improves code readability for function parameters or variable declarations. For example:
import ir.mahozad.multiplatform.wavyslider.WaveVelocity
fun doSomething(
// velocity: Pair<Dp, WaveDirection>? = null
velocity: WaveVelocity?
) {
// var newVelocity: Pair<Dp, WaveDirection>? = null
var newVelocity: WaveVelocity? = null
newVelocity = 10.dp to TAIL // OR WaveVelocity(10.dp, TAIL)
}Content copied to clipboard